//
//  KSUInfoItem.swift
//  ANOA
//
//  Created by 邱仙凯 on 2022/4/25.
//  Copyright © 2025 aowang. All rights reserved.
//  定制的一个item 类型

import UIKit
 import Kingfisher
class KSYewuyuanItem: KSFormHItem {
 
    lazy var lab1:UILabel = {
       let v = UILabel()
       return v
   }()
    lazy var lab2:UILabel = {
       let v = UILabel()
        v.textColor = .darkGray
        v.font = UIFont.systemFont(ofSize: 16)
       return v
   }()
    lazy var lab3:UILabel = {
       let v = UILabel()
      
       return v
   }()
    lazy var lab4:UILabel = {
       let v = UILabel()
        v.textColor = .darkGray
        v.font = UIFont.systemFont(ofSize: 16)
       return v
   }()
     convenience init(appearance: KSFormBaseAppear? = KSFormBaseAppear()) {
        self.init(title: "", appearance: appearance,type:.yewuyuan)
        
    
        self.addSubview(lab1)
         lab1.snp.makeConstraints { make in
             make.left.equalTo(self).offset(15)
             make.top.equalTo(self).offset(8)
        }
         self.addSubview(lab2)
          lab2.snp.makeConstraints { make in
              make.left.equalTo(lab1.snp.right).offset(15)
              make.centerY.equalTo(lab1)
         }
         self.addSubview(lab3)
          lab3.snp.makeConstraints { make in
              make.left.equalTo(self).offset(15)
              make.bottom.equalTo(self).offset(-8)
         }
         self.addSubview(lab4)
          lab4.snp.makeConstraints { make in
              make.left.equalTo(lab3.snp.right).offset(15)
              make.centerY.equalTo(lab3)
         }
      }
 
    func setIcon(image:UIImage) {
       
 
     }
    func setContent(labStr1:String,labStr2:String,labStr3:String,labStr4:String ) {
        
        lab1.text = labStr1
        lab2.text = labStr2
        lab3.text = labStr3
        lab4.text = labStr4
     }
}
